package com.echat.business.blog.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.echat.business.blog.model.Blog;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chentl123
 * @since 2019-09-05
 */
public interface IBlogService extends IService<Blog> {
    /**
     * 获取博客列表
     *
     * @return
     */
    List<Map<String, Object>> getBlogList(Page<Map<String, Object>> page,Blog blog, String orderBy);

    /**
     * @return java.util.List<com.echat.business.blog.model.Blog>
     * @author chentl
     * @description 根据 blogTypeId 获取博客
     * @date 2019/9/16 16:04
     * @params [blogTypeId]
     * @since JDK 1.7
     */
    List<Map<String, Object>> getBlogsByBlogTypeId(Integer blogTypeId);

}
